package ligne2vie.topos.server.bo.geocell;

/**
 * Interface to create a cost function used in geocells algorithm. This function will determine the cost of an operation
 * depending of number of cells and resolution. When the cost is going higher, the algorithm stops. The cost depends on
 * application use of geocells.
 * 
 * @author Alexandre Gellibert <alexandre.gellibert@gmail.com>
 * 
 */
public interface CostFunction {

	/**
	 * @param numCells
	 *            number of cells found
	 * @param resolution
	 *            resolution of those cells
	 * @return the cost of the operation
	 */
	public double defaultCostFunction(int numCells, int resolution);

}